<template>
  <div class="draft-page">
    <!-- 返回按钮 -->
    <div class="page-header">
      <el-button type="primary" @click="goBack">
        <el-icon><ArrowLeft /></el-icon>
        返回打包页面
      </el-button>
    </div>

    <!-- 草稿箱管理组件 -->
    <MiniprogramDraft />
  </div>
</template>

<script>
import { useRouter } from 'vue-router';
import MiniprogramDraft from '../components/MiniprogramDraft.vue';

export default {
  name: 'DraftPage',
  components: {
    MiniprogramDraft
  },
  setup() {
    const router = useRouter();

    const goBack = () => {
      router.push('/');
    };

    return {
      goBack
    };
  }
};
</script>

<style scoped>
.draft-page {
  padding: 20px;
  max-width: 1400px;
  margin: 0 auto;
}

.page-header {
  margin-bottom: 20px;
}
</style>
